@import "../style/mixins/hairline.less";

.am-long-password {
  &-item {
    display: flex;
    align-items: center;
    background: @color-fill-grey-inverse;
    background: var(--am-long-password-item-background, @color-fill-grey-inverse);
    padding-left: @h-spacing-large;
    padding-left: var(--am-long-password-item-padding-left, @h-spacing-large);

    .a-input-content {
      padding-left: 2px;
    }
  }

  &-line {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    padding-right: @h-spacing-large;
    padding-right: var(--am-long-password-line-padding-right, @h-spacing-large);
    min-height: @size-12;
    min-height: var(--am-long-password-line-min-height, @size-12);
    overflow: hidden;
    font-size: @font-size-list;
    font-size: var(--am-long-password-font-size, @font-size-list);
  }

  &-content {
    flex: 1;
    display: flex;
    color: @color-text-title;
    color: var(--am-long-password-content-color, @color-text-title);
    text-align: left;
    padding: 0;
  }

  &-content .a-input-wrap {
    flex: 1;
  }

  &-clear {
    display: flex;
    height: @icon-size-sm;
    height: var(--am-long-password-icon-size, @icon-size-sm);
    width: @icon-size-sm;
    width: var(--am-long-password-icon-size, @icon-size-sm);
    justify-content: center;
    align-items: center;
    margin-left: @h-spacing-large;
    margin-left: var(--am-long-password-eye-spacing, @h-spacing-large);
    &-icon {
      line-height: @line-height-base;
      line-height: var(--am-long-password-icon-line-height, @line-height-base);
    }
  }

  &-clear.show {
    visibility: visible;
  }

  &-clear.hidden {
    visibility: hidden;
    pointer-events: none;
  }

  &-line-bottom {
    .hairline("bottom");
  }

  /* 最后一行 */
  &-item.last .am-input-line-bottom::after {
    display: none;
  }
  &-placeholder-base {
    color: @color-text-weak;
    color: var(--am-long-password-placeholder-color, @color-text-weak);
  }
  &-eye {
    margin-left: @h-spacing-large;
    margin-left: var(--am-long-password-eye-spacing, @h-spacing-large);
    height: @icon-size-sm;
    height: var(--am-long-password-icon-size, @icon-size-sm);
    width: @icon-size-sm;
    width: var(--am-long-password-icon-size, @icon-size-sm);
    display: flex;
    align-items: center;
    &-icon {
      line-height: @line-height-base;
      line-height: var(--am-long-password-icon-line-height, @line-height-base);
    }
  }
}
